/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-18 10:54:33
 * @LastEditTime: 2019-09-18 14:00:40
 * @LastEditors: Please set LastEditors
 */

package com.jp;

public class Main {
    public static void main(String[] args) {


        demotest();
    }

    static void demotest() {
        List<Integer> list = new ArrayList2<>();

        list.add(11); // 11
        list.add(0, 22); // 22 11
        System.out.println(list);
        for (int i = 40; i < 80; i++) {
            list.add(i);
        }
        System.out.println(list);
        while (list.size() > 10) {
            list.remove(list.size()-1);
        }

        System.out.println(list);
    }

    
}